package chouxianglei;

/**
 * Created by chenkuo on 2018/7/3.
 */
public class ChouXiang01 {
    public static void main(String[] args) {
        people chenkuo = new people();
        chenkuo.eat();
        chenkuo.happy();
        Animal animal = new Animal() {
            public void happy() {
                System.out.println(this.getClass());
            }

            public void bad() {

            }
        };


//        animal.eat();
        animal.happy();
    }

}

class people extends Animal{
    public String idCard;//身份证
    public String Education;//学历
    public void goSchool(){
        System.out.println();
    }

    public void happy() {
        System.out.println("哈哈"+this.getClass());
    }

    public void bad() {

    }
}
